﻿<UserControl x:Class="SiliconStudio.Meet.EjpControls.KnowledgeMapComment"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Height="300" Width="200" MouseLeftButtonUp="OnMouseLeftButtonUp" StylusUp="OnStylusUp">
    <UserControl.Resources>

        <DataTemplate x:Key="commentItemTemplate">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="15"/>
                    <RowDefinition Height="15"/>
                </Grid.RowDefinitions>
                <Grid.Background>
                    <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                        <GradientStop Color="#FFEEEEEE" Offset="0"/>
                        <GradientStop Color="#FFFFFFFF" Offset="1"/>
                    </LinearGradientBrush>
                </Grid.Background>
                <!--<Rectangle Width="3" Grid.RowSpan="3" HorizontalAlignment="Left" VerticalAlignment="Stretch" 
                           Margin="2,2,0,2" Fill="Yellow" x:Name="_r_CommenterColorBar" />-->
                <TextBlock Margin="7,0,3,0" FontSize="10" TextWrapping="Wrap" Text="{Binding Path=Message}"/>
				<Label Content="{Binding Path=Date}" Grid.Row="1" FontSize="8" Padding="0" 
                       Margin="0,3,0,0" HorizontalContentAlignment="Right" VerticalAlignment="Bottom"/>
                <Label Content="{Binding Path=Author}" Grid.Row="2" FontSize="10" Padding="0" 
                       Margin="0" HorizontalContentAlignment="Right" VerticalAlignment="Top"/>
			</Grid>
        </DataTemplate>

        <DrawingBrush x:Key="_brush_PushPin">
            <DrawingBrush.Drawing>
                <DrawingGroup>
                    <DrawingGroup.Children>
                        <GeometryDrawing Brush="#FFAFAFB0" Geometry="F1 M 45.8121,137.239L 4.43343,185.306L 7.77743,188.65L 55.8454,147.267L 45.8121,137.239 Z "/>
                        <GeometryDrawing Geometry="F1 M 9.50317,63.9107C -14.0675,87.3348 9.97783,137.853 33.4365,161.315L 33.4365,161.315C 56.9018,184.78 105.719,207.652 129.11,184.26L 129.11,184.26C 145.834,167.537 175.557,119.517 125.332,67.6214L 125.332,67.6214C 103.677,45.2454 83.3205,37.5508 65.5658,37.5494L 65.5658,37.5494C 40.4792,37.5468 20.5818,52.9055 9.50317,63.9107 Z ">
                            <GeometryDrawing.Brush>
                                <LinearGradientBrush StartPoint="0.491807,-0.00115435" EndPoint="1.49597,-0.00115435">
                                    <LinearGradientBrush.RelativeTransform>
                                        <TransformGroup>
                                            <SkewTransform CenterX="0.491807" CenterY="-0.00115435" AngleX="-0.040842" AngleY="0"/>
                                            <RotateTransform CenterX="0.491807" CenterY="-0.00115435" Angle="88.973"/>
                                        </TransformGroup>
                                    </LinearGradientBrush.RelativeTransform>
                                    <LinearGradientBrush.GradientStops>
                                        <GradientStop Color="#FFE7301E" Offset="0"/>
                                        <GradientStop Color="#FFCF2228" Offset="1"/>
                                    </LinearGradientBrush.GradientStops>
                                </LinearGradientBrush>
                            </GeometryDrawing.Brush>
                        </GeometryDrawing>
                        <GeometryDrawing Geometry="F1 M 76.3618,71.0535C 76.3618,71.0535 59.8352,89.9161 81.6818,111.721L 81.6818,111.721C 103.486,133.549 122.346,117.023 122.346,117.023L 163.014,76.3561L 117.03,30.3894L 76.3618,71.0535 Z ">
                            <GeometryDrawing.Brush>
                                <LinearGradientBrush StartPoint="0.429371,0.555455" EndPoint="0.69406,0.820185">
                                    <LinearGradientBrush.GradientStops>
                                        <GradientStop Color="#FFE7301E" Offset="0"/>
                                        <GradientStop Color="#FFC7000C" Offset="1"/>
                                    </LinearGradientBrush.GradientStops>
                                </LinearGradientBrush>
                            </GeometryDrawing.Brush>
                        </GeometryDrawing>
                        <GeometryDrawing Brush="#FFD70010" Geometry="M 178.803,101.83C 160.811,119.808 126.719,114.892 102.591,90.7777C 78.4842,66.6736 73.5749,32.5671 91.5656,14.5897C 109.531,-3.38898 143.623,1.53766 167.73,25.6377C 191.834,49.7537 196.772,83.8377 178.803,101.83 Z "/>
                        <GeometryDrawing Brush="#FFE60013" Geometry="F1 M 182.633,98.0016C 164.637,115.98 130.545,111.064 106.418,86.9468C 82.3104,62.8455 77.401,28.739 95.3917,10.7589C 113.354,-7.21979 147.449,-2.29047 171.556,21.8083C 195.657,45.9229 200.598,80.0069 182.633,98.0016 Z "/>
                        <GeometryDrawing Brush="#34FFFFFF" Geometry="F1 M 45.8795,46.7245C 56.3724,46.7245 64.8785,55.2307 64.8785,65.7236C 64.8785,76.2165 56.3724,84.7226 45.8795,84.7226C 35.3866,84.7226 26.8804,76.2165 26.8804,65.7236C 26.8804,55.2307 35.3866,46.7245 45.8795,46.7245 Z "/>
                    </DrawingGroup.Children>
                </DrawingGroup>
            </DrawingBrush.Drawing>
        </DrawingBrush>

        <DrawingBrush x:Key="_brush_EnterButton">
            <DrawingBrush.Drawing>
                <DrawingGroup>
                    <GeometryDrawing Geometry="F1 M 5.26811,1.17749C 2.9388,1.17749 1.05347,3.06543 1.05347,5.39081L 1.05347,34.8935C 1.05347,37.2202 2.9388,39.1094 5.26811,39.1094L 34.7695,39.1094C 37.0961,39.1094 38.9814,37.2202 38.9814,34.8935L 38.9814,5.39081C 38.9814,3.06543 37.0961,1.17749 34.7695,1.17749L 5.26811,1.17749 Z ">
                        <GeometryDrawing.Brush>
                            <LinearGradientBrush StartPoint="0.499981,-0.316683" EndPoint="0.499981,1.58335">
                                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                <GradientStop Color="#FF00A0E8" Offset="1"/>
                            </LinearGradientBrush>
                        </GeometryDrawing.Brush>
                    </GeometryDrawing>
                    <GeometryDrawing Brush="#FF256FB8" Geometry="F1 M 2.10531,5.26801L 2.10531,34.7707C 2.11064,36.5146 3.52132,37.928 5.26798,37.9307L 34.7707,37.9307C 36.5146,37.928 37.9266,36.5146 37.928,34.7707L 37.928,5.26801C 37.9266,3.52399 36.5146,2.10931 34.7707,2.10931L 5.26798,2.10931C 3.52132,2.10931 2.11064,3.52399 2.10531,5.26801 Z M 5.26798,40.0386C 2.3573,40.0386 0,37.68 0,34.7707L 0,5.26801C 0,2.35864 2.3573,0.00128174 5.26798,0L 34.7707,0C 37.6787,0.00128174 40.0347,2.35864 40.0387,5.26801L 40.0387,34.7707C 40.0347,37.68 37.6787,40.0386 34.7707,40.0386L 5.26798,40.0386 Z "/>
                    <GeometryDrawing Brush="#FF256FB8" Geometry="F1 M 14.7537,23.2185L 14.7377,20.9265L 14.731,19.1025L 14.6977,14.1186L 10.243,17.5479L 9.46171,18.1492L 5.97107,20.8359L 5.78573,20.9812L 10.2844,24.3572L 14.7817,27.7332L 14.7537,23.2185 Z "/>
                    <GeometryDrawing Brush="#FF256FB8" Geometry="F1 M 12.1469,22.854C 11.0416,22.854 10.1482,21.958 10.1482,20.854C 10.1482,19.7473 11.0416,18.8553 12.1469,18.8553L 28.3549,18.8527L 28.3576,15.3701L 28.3576,15.374C 28.3576,14.2673 29.2536,13.374 30.3576,13.374C 31.4602,13.374 32.3562,14.2673 32.3562,15.374L 32.3536,22.854L 12.1469,22.854 Z "/>
                </DrawingGroup>
            </DrawingBrush.Drawing>
        </DrawingBrush>

        <DrawingBrush x:Key="_brush_ClearButton">
        <DrawingBrush.Drawing>
            <DrawingGroup>
                <DrawingGroup.Children>
                    <GeometryDrawing Geometry="F1 M 5.26811,1.17749C 2.9388,1.17749 1.05212,3.06549 1.05212,5.39081L 1.05212,34.8935C 1.05212,37.2202 2.9388,39.1095 5.26811,39.1095L 34.7708,39.1095C 37.0961,39.1095 38.9814,37.2202 38.9814,34.8935L 38.9814,5.39081C 38.9814,3.06549 37.0961,1.17749 34.7708,1.17749L 5.26811,1.17749 Z ">
                        <GeometryDrawing.Brush>
                            <LinearGradientBrush StartPoint="0.499998,-0.316681" EndPoint="0.499998,1.58334">
                                <LinearGradientBrush.GradientStops>
                                    <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                    <GradientStop Color="#FF00A0E8" Offset="1"/>
                                </LinearGradientBrush.GradientStops>
                            </LinearGradientBrush>
                        </GeometryDrawing.Brush>
                    </GeometryDrawing>
                    <GeometryDrawing Brush="#FF256FB8" Geometry="F1 M 2.10531,5.26801L 2.10531,34.7707C 2.11064,36.5147 3.52132,37.928 5.26798,37.9307L 34.7707,37.9307C 36.5146,37.928 37.9266,36.5147 37.928,34.7707L 37.928,5.26801C 37.9266,3.52399 36.5146,2.10931 34.7707,2.10931L 5.26798,2.10931C 3.52132,2.10931 2.11064,3.52399 2.10531,5.26801 Z M 5.26798,40.0387C 2.3573,40.0387 0,37.68 0,34.7707L 0,5.26801C 0,2.3587 2.3573,0.00134277 5.26798,0L 34.7707,0C 37.6787,0.00134277 40.0347,2.3587 40.0387,5.26801L 40.0387,34.7707C 40.0347,37.68 37.6787,40.0387 34.7707,40.0387L 5.26798,40.0387 Z "/>
                    <GeometryDrawing Brush="#FF3161AD" Geometry="M 8.17171,26.7811C 10.3664,20.4024 12.1837,15.2651 12.1837,15.2651L 15.573,18.1131C 23.0344,11.8438 27.7611,13.2691 31.0464,16.4824C 33.5891,18.9677 33.3851,23.7144 29.969,27.8451C 29.7157,28.1505 27.5931,27.5237 27.6317,27.4785C 30.4864,24.1558 31.665,20.0731 29.4864,17.9624C 27.0891,15.6411 22.4117,14.4958 17.6224,20.0518C 17.4944,20.1998 20.2131,22.261 20.2131,22.261C 20.2131,22.261 15.9317,23.7704 8.17171,26.7811 Z "/>
                    <GeometryDrawing Geometry="M 8.17171,26.7811L 12.1837,15.2651L 15.573,18.1131C 23.0344,11.8438 27.7611,13.2691 31.0464,16.4824C 33.5891,18.9677 33.3851,23.7144 29.969,27.8451C 29.7157,28.1505 27.5931,27.5237 27.6317,27.4785C 30.4864,24.1558 31.665,20.0731 29.4864,17.9624C 27.0891,15.6411 22.4117,14.4958 17.6224,20.0518C 17.4944,20.1998 20.2131,22.261 20.2131,22.261L 8.17171,26.7811 Z ">
                        <GeometryDrawing.Pen>
                            <Pen Thickness="1.33333" LineJoin="Round" Brush="#FF3161AD"/>
                        </GeometryDrawing.Pen>
                    </GeometryDrawing>
                </DrawingGroup.Children>
            </DrawingGroup>
        </DrawingBrush.Drawing>
        </DrawingBrush>

        <DrawingBrush x:Key="_brush_Minimize">
            <DrawingBrush.Drawing>
                <DrawingGroup>
                    <GeometryDrawing Geometry="F1 M 5.07829,1.00616C 2.83295,1.00616 1.01294,2.82623 1.01294,5.07019L 1.01294,33.5089C 1.01294,35.7542 2.83295,37.5755 5.07829,37.5755L 33.5209,37.5755C 35.7636,37.5755 37.5836,35.7542 37.5836,33.5089L 37.5836,5.07019C 37.5836,2.82623 35.7636,1.00616 33.5209,1.00616L 5.07829,1.00616 Z ">
                        <GeometryDrawing.Brush>
                            <LinearGradientBrush StartPoint="0.5,-0.316688" EndPoint="0.5,1.58331">
                                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                <GradientStop Color="#FF00A0E8" Offset="1"/>
                            </LinearGradientBrush>
                        </GeometryDrawing.Brush>
                    </GeometryDrawing>
                    <GeometryDrawing Brush="#FF256FB8" Geometry="F1 M 2.03068,5.08008L 2.03068,33.5214C 2.03335,35.2054 3.39335,36.5667 5.07867,36.5694L 33.5213,36.5694C 35.2027,36.5667 36.564,35.2054 36.5653,33.5214L 36.5653,5.08008C 36.564,3.3974 35.2027,2.03607 33.5213,2.03339L 5.07867,2.03339C 3.39335,2.03607 2.03335,3.3974 2.03068,5.08008 Z M 5.07867,38.6014C 2.27334,38.6014 2.03451e-005,36.3294 2.03451e-005,33.5214L 2.03451e-005,5.08008C 2.03451e-005,2.27472 2.27334,0.00140381 5.07867,6.10352e-005L 33.5213,6.10352e-005C 36.3267,0.00140381 38.5974,2.27472 38.6027,5.08008L 38.6027,33.5214C 38.5974,36.3294 36.3267,38.6014 33.5213,38.6014L 5.07867,38.6014 Z "/>
                    <GeometryDrawing Brush="#FF256FB8" Geometry="F1 M 31.1323,27.1282C 31.1323,28.2748 30.4576,29.2095 29.6296,29.2095L 10.3296,29.2095C 9.49896,29.2095 8.82428,28.2748 8.82428,27.1282C 8.82428,25.9802 9.49896,25.0469 10.3296,25.0469L 29.6296,25.0469C 30.4576,25.0469 31.1323,25.9802 31.1323,27.1282 Z "/>
                </DrawingGroup>
            </DrawingBrush.Drawing>
        </DrawingBrush>

        <DrawingBrush x:Key="_brush_Close">
            <DrawingBrush.Drawing>
                <DrawingGroup>
                    <DrawingGroup.Children>
                        <GeometryDrawing Geometry="F1 M 5.07909,1.08813C 2.83509,1.08813 1.01909,2.90948 1.01909,5.1535L 1.01909,33.5935C 1.01909,35.8375 2.83509,37.6588 5.07909,37.6588L 33.5231,37.6588C 35.7671,37.6588 37.5857,35.8375 37.5857,33.5935L 37.5857,5.1535C 37.5857,2.90948 35.7671,1.08813 33.5231,1.08813L 5.07909,1.08813 Z ">
                            <GeometryDrawing.Brush>
                                <LinearGradientBrush StartPoint="0.499994,-0.316641" EndPoint="0.499994,1.58328">
                                    <LinearGradientBrush.GradientStops>
                                        <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                        <GradientStop Color="#FF00A0E8" Offset="1"/>
                                    </LinearGradientBrush.GradientStops>
                                </LinearGradientBrush>
                            </GeometryDrawing.Brush>
                        </GeometryDrawing>
                        <GeometryDrawing Brush="#FF256FB8" Geometry="F1 M 2.03336,5.08002L 2.03336,33.5213C 2.03602,35.2053 3.39603,36.5667 5.08003,36.5693L 33.5227,36.5693C 35.2067,36.5667 36.5654,35.2053 36.568,33.5213L 36.568,5.08002C 36.5654,3.39728 35.2067,2.03595 33.5227,2.03339L 5.08003,2.03339C 3.39603,2.03595 2.03602,3.39728 2.03336,5.08002 Z M 5.08003,38.6013C 2.27335,38.6013 1.01725e-005,36.3293 1.01725e-005,33.5213L 1.01725e-005,5.08002C 1.01725e-005,2.27466 2.27335,0.00128174 5.08003,0L 33.5227,0C 36.3267,0.00128174 38.6013,2.27466 38.6027,5.08002L 38.6027,33.5213C 38.6013,36.3293 36.3267,38.6013 33.5227,38.6013L 5.08003,38.6013 Z "/>
                        <GeometryDrawing Geometry="F1 M 33.7564,20.5593L 33.7355,11.4968L 23.8605,18.4759L 23.6738,27.4936L 33.7564,20.5593 Z ">
                            <GeometryDrawing.Brush>
                                <LinearGradientBrush StartPoint="0.000924105,0.496242" EndPoint="1.02947,0.496242">
                                    <LinearGradientBrush.GradientStops>
                                        <GradientStop Color="#FF2F7EC2" Offset="0"/>
                                        <GradientStop Color="#FF52C1E2" Offset="1"/>
                                    </LinearGradientBrush.GradientStops>
                                </LinearGradientBrush>
                            </GeometryDrawing.Brush>
                        </GeometryDrawing>
                        <GeometryDrawing Geometry="F1 M 18.4631,11.4905L 33.7624,11.4905L 23.0689,19.1426L 5.33623,19.2159L 18.4631,11.4905 Z ">
                            <GeometryDrawing.Brush>
                                <LinearGradientBrush StartPoint="0.0178585,0.500142" EndPoint="1.01024,0.500142">
                                    <LinearGradientBrush.GradientStops>
                                        <GradientStop Color="#FF2F7EC2" Offset="0"/>
                                        <GradientStop Color="#FF52C1E2" Offset="1"/>
                                    </LinearGradientBrush.GradientStops>
                                </LinearGradientBrush>
                            </GeometryDrawing.Brush>
                        </GeometryDrawing>
                        <GeometryDrawing Brush="#FFFFFFFF" Geometry="F1 M 7.42402,26.5392L 23.316,26.5392L 23.316,19.2939L 7.42402,19.2939C 7.42402,19.2939 4.84002,19.9832 4.61069,21.9339C 4.38136,23.8845 4.86136,26.5392 7.42402,26.5392 Z "/>
                        <GeometryDrawing Geometry="F1 M 7.42402,26.5392L 23.316,26.5392L 23.316,19.2939L 7.42402,19.2939C 7.42402,19.2939 4.84002,19.9832 4.61069,21.9339C 4.38136,23.8845 4.86136,26.5392 7.42402,26.5392 Z ">
                            <GeometryDrawing.Pen>
                                <Pen Thickness="2" LineJoin="Round" Brush="#FF3161AD"/>
                            </GeometryDrawing.Pen>
                        </GeometryDrawing>
                    </DrawingGroup.Children>
                </DrawingGroup>
            </DrawingBrush.Drawing>
        </DrawingBrush>

        <DrawingBrush x:Key="_brush_Close2">
            <DrawingBrush.Drawing>
                <DrawingGroup>
                    <GeometryDrawing Geometry="F1 M 5.03741,1.00616C 2.79342,1.00616 0.977417,2.82617 0.977417,5.07013L 0.977417,33.5089C 0.977417,35.7542 2.79342,37.5755 5.03741,37.5755L 33.4814,37.5755C 35.7254,37.5755 37.5441,35.7542 37.5441,33.5089L 37.5441,5.07013C 37.5441,2.82617 35.7254,1.00616 33.4814,1.00616L 5.03741,1.00616 Z ">
                        <GeometryDrawing.Brush>
                            <LinearGradientBrush StartPoint="0.499994,-0.316689" EndPoint="0.499994,1.5833">
                                <GradientStop Color="#FFFFFFFF" Offset="0"/>
                                <GradientStop Color="#FF00A0E8" Offset="1"/>
                            </LinearGradientBrush>
                        </GeometryDrawing.Brush>
                    </GeometryDrawing>
                    <GeometryDrawing Brush="#FF256FB8" Geometry="F1 M 2.03335,5.08002L 2.03335,33.5214C 2.03601,35.2054 3.39602,36.5667 5.08002,36.5693L 33.5227,36.5693C 35.2067,36.5667 36.5653,35.2054 36.568,33.5214L 36.568,5.08002C 36.5653,3.39734 35.2067,2.03601 33.5227,2.03339L 5.08002,2.03339C 3.39602,2.03601 2.03601,3.39734 2.03335,5.08002 Z M 5.08002,38.6014C 2.27334,38.6014 0,36.3293 0,33.5214L 0,5.08002C 0,2.27472 2.27334,0.00134277 5.08002,0L 33.5227,0C 36.3267,0.00134277 38.6013,2.27472 38.6027,5.08002L 38.6027,33.5214C 38.6013,36.3293 36.3267,38.6014 33.5227,38.6014L 5.08002,38.6014 Z "/>
                    <GeometryDrawing Brush="#FF256FB8" Geometry="F1 M 27.8667,27.8287C 27.056,28.6407 25.9187,28.8246 25.3333,28.2367L 11.6853,14.5887C 11.0974,14.0034 11.2827,12.866 12.092,12.0554C 12.9053,11.2447 14.0413,11.062 14.628,11.6473L 28.2733,25.2967C 28.8613,25.8807 28.6773,27.0193 27.8667,27.8287 Z "/>
                    <GeometryDrawing Brush="#FF256FB8" Geometry="F1 M 12.0932,27.8287C 12.9025,28.6407 14.0412,28.8246 14.6279,28.2367L 28.2732,14.5887C 28.8612,14.0034 28.6772,12.866 27.8679,12.0554C 27.0545,11.2447 25.9185,11.062 25.3332,11.6473L 11.6852,25.2967C 11.0972,25.8807 11.2839,27.0193 12.0932,27.8287 Z "/>
                </DrawingGroup>
            </DrawingBrush.Drawing>
        </DrawingBrush>

        <Style TargetType="{x:Type ListBoxItem}">
            <Setter Property="HorizontalContentAlignment" Value="Stretch" />
            <Setter Property="Padding" Value="0,0,0,2" />
        </Style>

    </UserControl.Resources>
    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch"  Margin="0,0,0,0">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="20"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="20"/>
            <RowDefinition Height="50*"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="35"/>
            <RowDefinition Height="8"/>
        </Grid.RowDefinitions>
        <Rectangle Fill="#7E2CA7E0" x:Name="_r_BG" Stroke="{x:Null}" RadiusY="4.493" RadiusX="4.493" 
                   Grid.RowSpan="4" Grid.ColumnSpan="1" Grid.Row="1"/>
        <Button Click="_b_Enter_Click" Margin="0,5.006,4,4.994" Content="" Grid.Row="3" Height="25" 
                Background="{DynamicResource _brush_EnterButton}" BorderBrush="{x:Null}" Foreground="{x:Null}" 
                x:Name="_b_Enter" Width="24.948" HorizontalAlignment="Right"/>
        <Button Click="_b_Clear_Click" HorizontalAlignment="Right" Margin="0,5.006,34,4.994" Width="25" 
                Height="25" Content="" Grid.Row="3" Background="{DynamicResource _brush_ClearButton}" 
                BorderBrush="{x:Null}" Foreground="{x:Null}" x:Name="_b_Clear"/>
        <Button Click="_b_Close_Click" Margin="4,5.006,0,4.994" Height="25" Content="" Grid.Row="3" Width="25" 
                HorizontalAlignment="Left" Background="{DynamicResource _brush_Close}" BorderBrush="{x:Null}" 
                Foreground="{x:Null}" x:Name="_b_Close"/>
        <Button Click="_b_Minimize_Click" Margin="34,5.006,0,4.994" Height="25" Content="" Grid.Row="3" Width="25" 
                HorizontalAlignment="Left" Background="{DynamicResource _brush_Minimize}" BorderBrush="{x:Null}" 
                Foreground="{x:Null}" x:Name="_b_Minimize"/>
        <ListBox Background="Transparent" ScrollViewer.HorizontalScrollBarVisibility="Disabled" Padding="0" 
                 Margin="4,4,4,4" IsSynchronizedWithCurrentItem="True" x:Name="_lb_Messages" Grid.Row="1" 
                 ItemTemplate="{DynamicResource commentItemTemplate}" ScrollViewer.CanContentScroll="False"/>
        <TextBox Margin="4,0,4,0" Background="#FFFFFFFF" BorderBrush="#FFBDBDBD" FontSize="9" Padding="0,0,0,0" 
                 Grid.Row="2" VerticalScrollBarVisibility="Auto" ScrollViewer.CanContentScroll="True" 
                 Text="" TextWrapping="Wrap" x:Name="_tb_Message"/>
        <Rectangle x:Name="_r_PushPin" MouseLeftButtonUp="_r_PushPin_MouseLeftButtonUp" Fill="{DynamicResource _brush_PushPin}" 
                   Stroke="{x:Null}" RadiusX="0" RadiusY="0" Grid.Column="1" Margin="-4,0,0,-4">
            <Rectangle.ContextMenu>
                <ContextMenu Opened="OnPushPinMenuOpen">
                    <MenuItem Header="元の位置に戻す" Name="_ppCMenu_ReturnPosition" Click="OnReturnToOriginalPosition" />
                    <MenuItem Header="コメントの削除" Name="_ppCMenu_RemoveComment" Click="OnRemoveComment" />
                </ContextMenu>
            </Rectangle.ContextMenu>
        </Rectangle>
        
        <Rectangle Fill="#7E2CA7E0" Margin="5,0,5,1" Grid.Row="4" RadiusX="5" RadiusY="5" />
    </Grid>
</UserControl>
